package com.retro.greent.service;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.resource.Directory;
import org.restlet.routing.Router;

import com.retro.greent.resource.GreenTResourceImpl;

public class GreenTService extends Application
{
	@Override
	public Restlet createRoot()
	{
		// Create a root router
		Router router = new Router(getContext());
		router.attachDefault(new Directory(getContext(), "war:///"));
		router.attach("test", GreenTResourceImpl.class);
		return router;
	}
}